Skip to content

Enable image subprocesses by default on supported hosts - #99209

Draft
petehunt wants to merge 3 commits into
codex/sandbox-images/shutdownfrom
codex/sandbox-images/default-on
Draft

petehunt wants to merge 3 commits into
codex/sandbox-images/shutdownfrom
codex/sandbox-images/default-on

Conversation

@petehunt

Copy link
Copy Markdown
Contributor

Summary

Enable sandboxed image subprocesses automatically when host tools and OS sandbox permissions are available. Explicit false disables them; explicit true fails startup if unavailable. Never retry worker transform failures unsandboxed. Gate source-checkout read allowances on NEXT_PRIVATE_LOCAL_DEV.

Layer 6 of 6 in the sandboxed image optimization stack.

Verification

  • Final stack contents verified on macOS and Linux: image unit tests, hung-worker shutdown, and focused development/production image routes.
  • macOS config suite also passed. Intermediate layer tips were not independently rerun for publication.
  • Upstream commits were re-signed without changing any commit tree. Linux verification of the identical final tree.
  • Root type checking remains blocked by existing Octokit declaration-resolution errors in node_modules.

@petehunt
petehunt added this pull request to stack #99210 September 25, 2026 02:01
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Failing test suites

Commit: ab8be86 | About building and testing Next.js

pnpm test-start test/production/required-server-files-ssr-404/test/index.test.ts (job)

  • Required Server Files > production mode > should render SSR page correctly (DD)
  • Required Server Files > production mode > should render dynamic SSR page correctly (DD)
  • Required Server Files > production mode > should render fallback page correctly (DD)
  • Required Server Files > production mode > should render SSR page correctly with x-matched-path (DD)
  • Required Server Files > production mode > should render dynamic SSR page correctly with x-matched-path (DD)
  • Required Server Files > production mode > should render fallback page correctly with x-matched-path and routes-matches (DD)
  • Required Server Files > production mode > should return data correctly with x-matched-path (DD)
  • Required Server Files > production mode > should render fallback optional catch-all route correctly with x-matched-path and routes-matches (DD)
  • Required Server Files > production mode > should return data correctly with x-matched-path for optional catch-all route (DD)
  • Required Server Files > production mode > should not apply trailingSlash redirect (DD)
  • Required Server Files > production mode > should normalize catch-all rewrite query values correctly (DD)
  • Required Server Files > production mode > should normalize optional values correctly for SSP page (DD)
  • Required Server Files > production mode > should normalize optional values correctly for SSG page (DD)
  • Required Server Files > production mode > should normalize optional values correctly for API page (DD)
  • Required Server Files > production mode > should match the index page correctly (DD)
  • Required Server Files > production mode > should match the root dynamic page correctly (DD)
  • Required Server Files > production mode > should preserve dynamic route identity from x-matched-path (DD)
  • Required Server Files > production mode > should rematch the concrete path after using x-matched-path (DD)
  • Required Server Files > production mode > should handle 404s properly (DD)
  • Required Server Files > production mode > partial optional catch-all route > should render /partial-catch-all/hello.com (DD)
  • Required Server Files > production mode > partial optional catch-all route > should render /partial-catch-all/hello.com/hello (DD)
  • Required Server Files > production mode > partial optional catch-all route > should render /partial-catch-all/hello.com/hello/world (DD)
Expand output

● Required Server Files › production mode › should render SSR page correctly

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  74 |
  75 |       it('should output required-server-files manifest correctly', async () => {
> 76 |         expect(requiredFilesManifest.version).toBe(1)
     |                               ^
  77 |         expect(Array.isArray(requiredFilesManifest.files)).toBe(true)
  78 |         expect(Array.isArray(requiredFilesManifest.ignore)).toBe(true)
  79 |         expect(requiredFilesManifest.files.length).toBeGreaterThan(0)

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:76:31)

● Required Server Files › production mode › should render dynamic SSR page correctly

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  87 |         for (const file of requiredFilesManifest.files) {
  88 |           console.log('checking', file)
> 89 |           expect(fs.existsSync(join(next.testDir, file))).toBe(true)
     |                               ^
  90 |         }
  91 |
  92 |         expect(fs.existsSync(join(next.testDir, '.next/server'))).toBe(true)

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:89:31)

● Required Server Files › production mode › should render fallback page correctly

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  102 |         const $ = cheerio.load(html)
  103 |         const data = JSON.parse($('#props').text())
> 104 |
      | ^
  105 |         expect($('#index').text()).toBe('index page')
  106 |         expect(data.hello).toBe('world')
  107 |

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:104:31)

● Required Server Files › production mode › should render SSR page correctly with x-matched-path

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  131 |
  132 |         expect($('#dynamic').text()).toBe('dynamic page')
> 133 |         expect($('#slug').text()).toBe('first')
      |                               ^
  134 |         expect(data.hello).toBe('world')
  135 |
  136 |         const html2 = await renderViaHTTP(

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:133:31)

● Required Server Files › production mode › should render dynamic SSR page correctly with x-matched-path

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  152 |         const html = await renderViaHTTP(
  153 |           appPort,
> 154 |           '/fallback/first',
      |                             ^
  155 |           undefined,
  156 |           withInvocationId()
  157 |         )

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:154:31)

● Required Server Files › production mode › should render fallback page correctly with x-matched-path and routes-matches

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  176 |         expect($2('#slug').text()).toBe('first')
  177 |         expect(isNaN(data2.random)).toBe(false)
> 178 |         expect(data2.random).not.toBe(data.random)
      |                               ^
  179 |
  180 |         const html3 = await renderViaHTTP(
  181 |           appPort,

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:178:31)

● Required Server Files › production mode › should return data correctly with x-matched-path

SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
    at JSON.parse (<anonymous>)

  326 |         )
  327 |
> 328 |         const { pageProps: data } = await res.json()
      |                                     ^
  329 |
  330 |         expect(data.slug).toBe('first')
  331 |         expect(data.hello).toBe('world')

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:328:37)

● Required Server Files › production mode › should render fallback optional catch-all route correctly with x-matched-path and routes-matches

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  220 |         expect(data.hello).toBe('world')
  221 |
> 222 |         const html2 = await renderViaHTTP(
      |                               ^
  223 |           appPort,
  224 |           '/some-other-path',
  225 |           undefined,

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:222:31)

● Required Server Files › production mode › partial optional catch-all route › should render /partial-catch-all/hello.com

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  348 |         expect(data2.hello).toBe('world')
  349 |       })
> 350 |
      | ^
  351 |       it('should render fallback optional catch-all route correctly with x-matched-path and routes-matches', async () => {
  352 |         const html = await renderViaHTTP(
  353 |           appPort,

  at production/required-server-files-ssr-404/test/index.test.ts:350:35

● Required Server Files › production mode › partial optional catch-all route › should render /partial-catch-all/hello.com/hello

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  348 |         expect(data2.hello).toBe('world')
  349 |       })
> 350 |
      | ^
  351 |       it('should render fallback optional catch-all route correctly with x-matched-path and routes-matches', async () => {
  352 |         const html = await renderViaHTTP(
  353 |           appPort,

  at production/required-server-files-ssr-404/test/index.test.ts:350:35

● Required Server Files › production mode › partial optional catch-all route › should render /partial-catch-all/hello.com/hello/world

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  348 |         expect(data2.hello).toBe('world')
  349 |       })
> 350 |
      | ^
  351 |       it('should render fallback optional catch-all route correctly with x-matched-path and routes-matches', async () => {
  352 |         const html = await renderViaHTTP(
  353 |           appPort,

  at production/required-server-files-ssr-404/test/index.test.ts:350:35

● Required Server Files › production mode › should return data correctly with x-matched-path for optional catch-all route

SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
    at JSON.parse (<anonymous>)

  512 |         )
  513 |
> 514 |         const { pageProps: data } = await res.json()
      |                                     ^
  515 |
  516 |         expect(data.params).toEqual({})
  517 |         expect(data.hello).toBe('world')

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:514:37)

● Required Server Files › production mode › should not apply trailingSlash redirect

expect(received).toBe(expected) // Object.is equality

Expected: 200
Received: 500

  404 |         expect($3('#catch-all').text()).toBe('optional catch-all page')
  405 |         expect(data3.params).toEqual({ rest: ['hello', 'world'] })
> 406 |         expect(isNaN(data3.random)).toBe(false)
      |                                    ^
  407 |         expect(data3.random).not.toBe(data.random)
  408 |
  409 |         const html4 = await renderViaHTTP(

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:406:36)

● Required Server Files › production mode › should normalize catch-all rewrite query values correctly

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  416 |             },
  417 |           })
> 418 |         )
      |          ^
  419 |         const $4 = cheerio.load(html4)
  420 |         const data4 = JSON.parse($4('#props').text())
  421 |

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:418:25)

● Required Server Files › production mode › should normalize optional values correctly for SSP page

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  453 |           })
  454 |         )
> 455 |         const $6 = cheerio.load(html6)
      |                                ^
  456 |         const data6 = JSON.parse($6('#props').text())
  457 |
  458 |         expect($6('#catch-all').text()).toBe('optional catch-all page')

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:455:32)

● Required Server Files › production mode › should normalize optional values correctly for SSG page

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  470 |           },
  471 |           {
> 472 |             path: '/partial-catch-all/hello.com/hello',
      |                                ^
  473 |             query: { nxtPdomain: 'hello.com', nxtPrest: 'hello' },
  474 |             expected: { domain: 'hello.com', rest: ['hello'] },
  475 |           },

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:472:32)

● Required Server Files › production mode › should normalize optional values correctly for API page

SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
    at JSON.parse (<anonymous>)

  676 |         )
  677 |
> 678 |         const json = await res.json()
      |                      ^
  679 |         expect(json.query).toEqual({ another: 'value' })
  680 |         expect(json.url).toBe('/api/optional?another=value')
  681 |       })

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:678:22)

● Required Server Files › production mode › should match the index page correctly

expect(received).toBe(expected) // Object.is equality

Expected: "index page"
Received: ""

  497 |           expect(data.params).toEqual(expected)
  498 |           expect(data.hello).toBe('world')
> 499 |         })
      |           ^
  500 |       })
  501 |
  502 |       it('should return data correctly with x-matched-path for optional catch-all route', async () => {

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:499:40)

● Required Server Files › production mode › should match the root dynamic page correctly

expect(received).toBe(expected) // Object.is equality

Expected: "[slug] page"
Received: ""

  508 |             headers: {
  509 |               'x-matched-path': '/catch-all/[[...rest]]',
> 510 |             },
      |               ^
  511 |           })
  512 |         )
  513 |

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:510:44)

● Required Server Files › production mode › should preserve dynamic route identity from x-matched-path

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  519 |         const res2 = await fetchViaHTTP(
  520 |           appPort,
> 521 |           `/_next/data/${next.buildId}/catch-all/[[...rest]].json`,
      |                                ^
  522 |           undefined,
  523 |           withInvocationId({
  524 |             headers: {

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:521:32)

● Req

... truncated ...

pnpm test-start-turbo test/production/required-server-files-ssr-404/test/index.test.ts (turbopack) (job)

  • Required Server Files > production mode > should render SSR page correctly (DD)
  • Required Server Files > production mode > should render dynamic SSR page correctly (DD)
  • Required Server Files > production mode > should render fallback page correctly (DD)
  • Required Server Files > production mode > should render SSR page correctly with x-matched-path (DD)
  • Required Server Files > production mode > should render dynamic SSR page correctly with x-matched-path (DD)
  • Required Server Files > production mode > should render fallback page correctly with x-matched-path and routes-matches (DD)
  • Required Server Files > production mode > should return data correctly with x-matched-path (DD)
  • Required Server Files > production mode > should render fallback optional catch-all route correctly with x-matched-path and routes-matches (DD)
  • Required Server Files > production mode > should return data correctly with x-matched-path for optional catch-all route (DD)
  • Required Server Files > production mode > should not apply trailingSlash redirect (DD)
  • Required Server Files > production mode > should normalize catch-all rewrite query values correctly (DD)
  • Required Server Files > production mode > should normalize optional values correctly for SSP page (DD)
  • Required Server Files > production mode > should normalize optional values correctly for SSG page (DD)
  • Required Server Files > production mode > should normalize optional values correctly for API page (DD)
  • Required Server Files > production mode > should match the index page correctly (DD)
  • Required Server Files > production mode > should match the root dynamic page correctly (DD)
  • Required Server Files > production mode > should preserve dynamic route identity from x-matched-path (DD)
  • Required Server Files > production mode > should rematch the concrete path after using x-matched-path (DD)
  • Required Server Files > production mode > should handle 404s properly (DD)
  • Required Server Files > production mode > partial optional catch-all route > should render /partial-catch-all/hello.com (DD)
  • Required Server Files > production mode > partial optional catch-all route > should render /partial-catch-all/hello.com/hello (DD)
  • Required Server Files > production mode > partial optional catch-all route > should render /partial-catch-all/hello.com/hello/world (DD)
Expand output

● Required Server Files › production mode › should render SSR page correctly

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  74 |
  75 |       it('should output required-server-files manifest correctly', async () => {
> 76 |         expect(requiredFilesManifest.version).toBe(1)
     |                               ^
  77 |         expect(Array.isArray(requiredFilesManifest.files)).toBe(true)
  78 |         expect(Array.isArray(requiredFilesManifest.ignore)).toBe(true)
  79 |         expect(requiredFilesManifest.files.length).toBeGreaterThan(0)

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:76:31)

● Required Server Files › production mode › should render dynamic SSR page correctly

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  87 |         for (const file of requiredFilesManifest.files) {
  88 |           console.log('checking', file)
> 89 |           expect(fs.existsSync(join(next.testDir, file))).toBe(true)
     |                               ^
  90 |         }
  91 |
  92 |         expect(fs.existsSync(join(next.testDir, '.next/server'))).toBe(true)

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:89:31)

● Required Server Files › production mode › should render fallback page correctly

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  102 |         const $ = cheerio.load(html)
  103 |         const data = JSON.parse($('#props').text())
> 104 |
      | ^
  105 |         expect($('#index').text()).toBe('index page')
  106 |         expect(data.hello).toBe('world')
  107 |

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:104:31)

● Required Server Files › production mode › should render SSR page correctly with x-matched-path

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  131 |
  132 |         expect($('#dynamic').text()).toBe('dynamic page')
> 133 |         expect($('#slug').text()).toBe('first')
      |                               ^
  134 |         expect(data.hello).toBe('world')
  135 |
  136 |         const html2 = await renderViaHTTP(

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:133:31)

● Required Server Files › production mode › should render dynamic SSR page correctly with x-matched-path

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  152 |         const html = await renderViaHTTP(
  153 |           appPort,
> 154 |           '/fallback/first',
      |                             ^
  155 |           undefined,
  156 |           withInvocationId()
  157 |         )

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:154:31)

● Required Server Files › production mode › should render fallback page correctly with x-matched-path and routes-matches

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  176 |         expect($2('#slug').text()).toBe('first')
  177 |         expect(isNaN(data2.random)).toBe(false)
> 178 |         expect(data2.random).not.toBe(data.random)
      |                               ^
  179 |
  180 |         const html3 = await renderViaHTTP(
  181 |           appPort,

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:178:31)

● Required Server Files › production mode › should return data correctly with x-matched-path

SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
    at JSON.parse (<anonymous>)

  326 |         )
  327 |
> 328 |         const { pageProps: data } = await res.json()
      |                                     ^
  329 |
  330 |         expect(data.slug).toBe('first')
  331 |         expect(data.hello).toBe('world')

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:328:37)

● Required Server Files › production mode › should render fallback optional catch-all route correctly with x-matched-path and routes-matches

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  220 |         expect(data.hello).toBe('world')
  221 |
> 222 |         const html2 = await renderViaHTTP(
      |                               ^
  223 |           appPort,
  224 |           '/some-other-path',
  225 |           undefined,

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:222:31)

● Required Server Files › production mode › partial optional catch-all route › should render /partial-catch-all/hello.com

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  348 |         expect(data2.hello).toBe('world')
  349 |       })
> 350 |
      | ^
  351 |       it('should render fallback optional catch-all route correctly with x-matched-path and routes-matches', async () => {
  352 |         const html = await renderViaHTTP(
  353 |           appPort,

  at production/required-server-files-ssr-404/test/index.test.ts:350:35

● Required Server Files › production mode › partial optional catch-all route › should render /partial-catch-all/hello.com/hello

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  348 |         expect(data2.hello).toBe('world')
  349 |       })
> 350 |
      | ^
  351 |       it('should render fallback optional catch-all route correctly with x-matched-path and routes-matches', async () => {
  352 |         const html = await renderViaHTTP(
  353 |           appPort,

  at production/required-server-files-ssr-404/test/index.test.ts:350:35

● Required Server Files › production mode › partial optional catch-all route › should render /partial-catch-all/hello.com/hello/world

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  348 |         expect(data2.hello).toBe('world')
  349 |       })
> 350 |
      | ^
  351 |       it('should render fallback optional catch-all route correctly with x-matched-path and routes-matches', async () => {
  352 |         const html = await renderViaHTTP(
  353 |           appPort,

  at production/required-server-files-ssr-404/test/index.test.ts:350:35

● Required Server Files › production mode › should return data correctly with x-matched-path for optional catch-all route

SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
    at JSON.parse (<anonymous>)

  512 |         )
  513 |
> 514 |         const { pageProps: data } = await res.json()
      |                                     ^
  515 |
  516 |         expect(data.params).toEqual({})
  517 |         expect(data.hello).toBe('world')

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:514:37)

● Required Server Files › production mode › should not apply trailingSlash redirect

expect(received).toBe(expected) // Object.is equality

Expected: 200
Received: 500

  404 |         expect($3('#catch-all').text()).toBe('optional catch-all page')
  405 |         expect(data3.params).toEqual({ rest: ['hello', 'world'] })
> 406 |         expect(isNaN(data3.random)).toBe(false)
      |                                    ^
  407 |         expect(data3.random).not.toBe(data.random)
  408 |
  409 |         const html4 = await renderViaHTTP(

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:406:36)

● Required Server Files › production mode › should normalize catch-all rewrite query values correctly

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  416 |             },
  417 |           })
> 418 |         )
      |          ^
  419 |         const $4 = cheerio.load(html4)
  420 |         const data4 = JSON.parse($4('#props').text())
  421 |

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:418:25)

● Required Server Files › production mode › should normalize optional values correctly for SSP page

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  453 |           })
  454 |         )
> 455 |         const $6 = cheerio.load(html6)
      |                                ^
  456 |         const data6 = JSON.parse($6('#props').text())
  457 |
  458 |         expect($6('#catch-all').text()).toBe('optional catch-all page')

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:455:32)

● Required Server Files › production mode › should normalize optional values correctly for SSG page

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  470 |           },
  471 |           {
> 472 |             path: '/partial-catch-all/hello.com/hello',
      |                                ^
  473 |             query: { nxtPdomain: 'hello.com', nxtPrest: 'hello' },
  474 |             expected: { domain: 'hello.com', rest: ['hello'] },
  475 |           },

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:472:32)

● Required Server Files › production mode › should normalize optional values correctly for API page

SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
    at JSON.parse (<anonymous>)

  676 |         )
  677 |
> 678 |         const json = await res.json()
      |                      ^
  679 |         expect(json.query).toEqual({ another: 'value' })
  680 |         expect(json.url).toBe('/api/optional?another=value')
  681 |       })

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:678:22)

● Required Server Files › production mode › should match the index page correctly

expect(received).toBe(expected) // Object.is equality

Expected: "index page"
Received: ""

  497 |           expect(data.params).toEqual(expected)
  498 |           expect(data.hello).toBe('world')
> 499 |         })
      |           ^
  500 |       })
  501 |
  502 |       it('should return data correctly with x-matched-path for optional catch-all route', async () => {

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:499:40)

● Required Server Files › production mode › should match the root dynamic page correctly

expect(received).toBe(expected) // Object.is equality

Expected: "[slug] page"
Received: ""

  508 |             headers: {
  509 |               'x-matched-path': '/catch-all/[[...rest]]',
> 510 |             },
      |               ^
  511 |           })
  512 |         )
  513 |

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:510:44)

● Required Server Files › production mode › should preserve dynamic route identity from x-matched-path

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

  519 |         const res2 = await fetchViaHTTP(
  520 |           appPort,
> 521 |           `/_next/data/${next.buildId}/catch-all/[[...rest]].json`,
      |                                ^
  522 |           undefined,
  523 |           withInvocationId({
  524 |             headers: {

  at Object.<anonymous> (production/required-server-files-ssr-404/test/index.test.ts:521:32)

● Req

... truncated ...

Other failing CI jobs

@petehunt
petehunt force-pushed the codex/sandbox-images/default-on branch 2 times, most recently from 9aa21f4 to b422cc4 Compare September 29, 2026 15:40
@petehunt
petehunt force-pushed the codex/sandbox-images/default-on branch from b422cc4 to bd77046 Compare September 29, 2026 18:25
@petehunt
petehunt force-pushed the codex/sandbox-images/default-on branch 2 times, most recently from bd77046 to d8a942d Compare September 29, 2026 18:27
@petehunt
petehunt force-pushed the codex/sandbox-images/default-on branch from d8a942d to 23982b1 Compare September 29, 2026 19:21
@petehunt
petehunt force-pushed the codex/sandbox-images/default-on branch from 23982b1 to ab8be86 Compare September 29, 2026 21:00

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant